package com.hctrl.mybatis.metaObject.entity;

import com.hctrl.mybatis.metaObject.annotation.FieldMapped;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author hanchao
 * @version 1.0
 * @date 2022/5/24 21:53
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class UserDO implements Serializable {

    @FieldMapped("name_pre")
    private String name;

    @FieldMapped("phone_pre")
    private String phone;

    @FieldMapped("age_pre")
    private Integer age;

    @FieldMapped("birthday_pre")
    private LocalDate birthday;
}
